package org.shop.oauth.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import java.lang.Long;
import java.lang.String;
import java.lang.Integer;
import java.util.List;

public class Credentials implements Serializable{

    @ApiModelProperty(value = "凭证id",required = false)
    @Id
    @Column(name = "id")
    private Long id;//凭证id

    @ApiModelProperty(value = "是否可用",required = false)
    @Column(name = "enabled")
    private String enabled;//是否可用

    @ApiModelProperty(value = "用户名",required = false)
    @Column(name = "name")
    private String name;//用户名

    @ApiModelProperty(value = "密码",required = false)
    @Column(name = "password")
    private String password;//密码

    @ApiModelProperty(value = "版本号",required = false)
    @Column(name = "version")
    private Integer version;//版本号

    private List<Authority> authorityList;


    //get方法
    public Long getId() {
        return id;
    }

    //set方法
    public void setId(Long id) {
        this.id = id;
    }
    //get方法
    public String getEnabled() {
        return enabled;
    }

    //set方法
    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }
    //get方法
    public String getName() {
        return name;
    }

    //set方法
    public void setName(String name) {
        this.name = name;
    }
    //get方法
    public String getPassword() {
        return password;
    }

    //set方法
    public void setPassword(String password) {
        this.password = password;
    }
    //get方法
    public Integer getVersion() {
        return version;
    }

    //set方法
    public void setVersion(Integer version) {
        this.version = version;
    }

    public List<Authority> getAuthorityList() {
        return authorityList;
    }

    public void setAuthorityList(List<Authority> authorityList) {
        this.authorityList = authorityList;
    }
}
